<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title></title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<script type="text/javascript" src="<%=basePath%>js/jquery-1.7.2.min.js"></script>
<%--		<link rel="stylesheet" type="text/css" href="extjs-4.1.1/resources/css/ext-all.css">--%>
<%--		<link rel="stylesheet" type="text/css" href="extjs-4.1.1/examples/panel/panel.css">--%>
<%--		--%>
<%--		<script type="text/javascript" src="extjs-4.1.1/ext-all.js"></script>--%>
<%--		<script type="text/javascript" src="extjs/panel.js"></script>--%>
<!-- 
		
		<script type="text/javascript" src="extjs-4.1.1/src/form/Basic.js"></script>
		<script type="text/javascript" src="extjs-4.1.1/src/util/Observable.js"></script> 

		<script type="text/javascript">
Ext.create('Ext.form.Panel', {
	title : 'Basic Form',
	renderTo : Ext.getBody(),
	bodyPadding : 5,
	width : 350,

	// Any configuration items here will be automatically passed along to
	// the Ext.form.Basic instance when it gets created.

	// The form will submit an AJAX request to this URL when submitted
	url : 'save-form.php',

	items : [ {
		fieldLabel : 'Field',
		name : 'theField'
	} ],

	buttons : [ {
		text : 'Submit',
		handler : function() {
			// The getForm() method returns the Ext.form.Basic instance:
		var form = this.up('form').getForm();
		if (form.isValid()) {
			// Submit the Ajax request and handle the response
		form.submit( {
			success : function(form, action) {
				Ext.Msg.alert('Success', action.result.msg);
			},
			failure : function(form, action) {
				Ext.Msg.alert('Failed', action.result.msg);
			}
		});
	}
}
	} ]
});
</script>
-->
	<script type="text/javascript">
		$(document).ready(function(){
            var url = "<%=basePath%>demo/demo0.htm";
            window.location.href = url;
    　　         });
	</script>
	</head>

	<body>
	</body>
</html>
